home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / vopl / glvopl.lha / glvopl / Makefile < prev    next >
Encoding:
Makefile  |  1993-10-08  |  1.9 KB  |  101 lines

  1. #
  2. # Makefile for vopl
  3. #
  4. # Usage: make os
  5. #
  6. # You might have to set:
  7. #
  8. #    OS
  9. #    RANLIB
  10. #    MCFLAGS
  11. #    MCFLAGS
  12. #    LIBS
  13. #    F77
  14. #    MFFLAGS
  15. #
  16. ############################################################
  17. #
  18. # You can set -DBSD or -DSYS5 here
  19. #
  20. #OS = -DBSD
  21.  
  22. # If you set -DSYS5 then set RANLIB = "ar ts" or "echo"
  23. #RANLIB = ar ts
  24.  
  25. #
  26. # Global CFLAGS can be set here. These are the ones we use on a sun.
  27. #
  28. # NOTE: change the -L bit or put libvogl.a and libhershey.a somewhere
  29. # where the linker can find them....
  30. #WHERELIBS = -L/decr/dist/vogl/src -L/decr/dist/vogl/hershey/src
  31. #
  32. #MCFLAGS = -g $(OS) 
  33. MCFLAGS = $(OS) -O -fsingle /usr/lib/libm.il $(WHERELIBS)
  34. #MCFLAGS = $(OS) -O4 -fsingle -f68881 /usr/lib/libm.il
  35. #
  36. # Or on an apollo... (-Wp make it use the 'other cpp')
  37. #MCFLAGS = $(OS) -O -Wp -M3000
  38.  
  39. #
  40. # If we have fortran we have to say so.
  41. #
  42. F77 = f77
  43. # Global FFLAGS can be set here. These are the ones we use on a sun.
  44. #
  45. MFFLAGS = $(OS) -O4 /usr/lib/libm.il $(WHERELIBS)
  46. #MFFLAGS = $(OS) -O4 -f68881 /usr/lib/libm.il
  47.  
  48. #
  49. # The name of the library to install and where to put it.
  50. #
  51. LIB = libvopl.a
  52. DEST = /usr/lib
  53.  
  54. #
  55. # Any other libraries that are needed go here
  56. #
  57.  
  58. SUNLIBS = -lvogl -lsuntool -lsunwindow -lpixrect -lX11
  59. X11LIBS = -lX11
  60. UNIXLIBS = 
  61. APOLLOLIBS =
  62.  
  63. LIBS = $(SUNLIBS)
  64.  
  65.  
  66. all:
  67.     cd src; make -f Makefile \
  68.             MCFLAGS="$(MCFLAGS)"
  69.  
  70.     if test -n "$(F77)" ; \
  71.     then     cd examples; \
  72.         make -f Makefile.f77 \
  73.             MFFLAGS="$(MFFLAGS)" \
  74.             LIBS="$(LIBS)"; \
  75.     fi; exit 0
  76.  
  77.     cd examples; make -f Makefile \
  78.             MCFLAGS="$(MCFLAGS)" \
  79.             LIBS="$(LIBS)"
  80.  
  81.     cd gpp; make -f Makefile \
  82.             MCFLAGS="$(MCFLAGS)" \
  83.             LIBS="$(LIBS)"
  84.  
  85. clean:
  86.     cd src; make clean
  87.     cd examples; make clean
  88.     cd examples; make -f Makefile.f77 clean
  89.     cd gpp; make clean
  90.  
  91. clobber:
  92.     cd src; make clobber
  93.     cd examples; make clobber
  94.     cd examples; make -f Makefile.f77 clobber
  95.     cd gpp; make clobber
  96.  
  97. install:
  98.     cp src/$(LIB) $(DEST)
  99.     chmod 644 $(DEST)/$(LIB)
  100.     $(RANLIB) $(DEST)/$(LIB)
  101.